<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:v="http://java.sun.com/jsf/html">
    <div class="ui-g">
        <div class="ui-g-12"><h3><b>基础信息</b></h3></div>
        <div class="ui-g-2">
            <p:outputLabel for="name" value="甲方产品名称"/>
            <strong style="color: red">*</strong>
        </div>
        <div class="ui-g-4">
            <p:inputText id="name" value="#{loanProductInfoBean.$.name}"
                         disabled="#{loanProductInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="company" value="甲方公司名称"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="company" value="#{loanProductInfoBean.$.companyId}"
                             filter="true"
                             filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                              noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.companyList}" var="company"
                               itemLabel="#{company.companyName}" itemValue="#{company.id}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="partnerorg" value="合作机构"/>
            <strong style="color: red">*</strong>
        </div>
        <div class="ui-g-4">
            <!--<p:inputText id="partnerorg" value="#{loanProductInfoBean.$.cooperativeOrganization}"-->
                         <!--disabled="#{loanProductInfoBean.isView()}"/>-->
            <p:selectOneMenu id="partnerorg"
                             value="#{loanProductInfoBean.$.cooperativeOrganization}" filter="true"
                             filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                              noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.COOPERATIVE_ORGANIZATION]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.name}"/>
            </p:selectOneMenu>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="客服类型"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="customerServiceType"
                             value="#{loanProductInfoBean.$.customerServiceType}" filter="true"
                             filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.CUSTOMER_SERVICE_TYPE]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
            <p:outputLabel value="客服电话"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="customerServiceContent" value="#{loanProductInfoBean.$.customerServiceContent}" disabled="#{loanProductInfoBean.isView()}" placeholder="请输入对应类型的客服内容" />
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="productType" value="甲方类型"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="productType"
                             value="#{loanProductInfoBean.$.productType}" filter="true"
                             filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                              noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.PRODUCT_TYPE]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                <p:ajax event="change" process="@this" update="@form"/>
            </p:selectOneMenu>
        </div>

        <p:outputPanel id="loan-info" rendered="#{loanProductInfoBean.$.productType == null or loanProductInfoBean.$.productType != 2}">

            <div class="ui-g-12"><h3><b>借款信息</b></h3></div>
            <div class="ui-g-2">
                <p:outputLabel for="rateType" value="利率模式"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <p:selectOneMenu id="rateType" value="#{loanProductInfoBean.$.rateType}"
                                 disabled="#{loanProductInfoBean.isView()}">
                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                  noSelectionOption="true"/>
                    <f:selectItems
                            value="#{loanProductInfoBean.dictionaries[DictionaryCode.RATE_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                    <p:ajax event="change" process="@this" update="changeByType"/>
                </p:selectOneMenu>
            </div>
            <div class="ui-g-2">
                <p:outputLabel for="rate" value="参考利率"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputNumber id="rate" value="#{loanProductInfoBean.$.rate}"
                                   disabled="#{loanProductInfoBean.isView()}"/>
                    <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
                </div>
            </div>
            <div class="ui-g-12">
                <h:panelGroup id="changeByType" style="width: 100%">
                    <div class="ui-g-2" style="padding-left: 0px">
                        <p:outputLabel for="minTerm" value="最低借款期限"/>
                        <strong style="color: red">*</strong>
                    </div>
                    <div class="ui-g-4">
                        <div class="input-group">
                            <p:inputText id="minTerm" value="#{loanProductInfoBean.$.minTerm}"
                                         disabled="#{loanProductInfoBean.isView()}">
                                <p:keyFilter regEx="/[\d]/"/>
                            </p:inputText>
                            <span class="input-group-addon">
                            <h:outputText value="天" rendered="#{loanProductInfoBean.$.rateType == 1}"/>
                            <h:outputText value="月" rendered="#{loanProductInfoBean.$.rateType == 2}"/>
                        </span>
                        </div>
                    </div>
                    <div class="ui-g-2">
                        <p:outputLabel for="maxTerm" value="最长借款期限"/>
                        <strong style="color: red">*</strong>
                    </div>
                    <div class="ui-g-4">
                        <div class="input-group">
                            <p:inputText id="maxTerm" value="#{loanProductInfoBean.$.maxTerm}"
                                         disabled="#{loanProductInfoBean.isView()}">
                                <p:keyFilter regEx="/[\d]/"/>
                            </p:inputText>
                            <span class="input-group-addon">
                            <h:outputText value="天" rendered="#{loanProductInfoBean.$.rateType == 1}"/>
                            <h:outputText value="月" rendered="#{loanProductInfoBean.$.rateType == 2}"/>
                        </span>
                        </div>
                    </div>
                </h:panelGroup>
            </div>
            <div class="ui-g-2"><p:outputLabel for="minLimit" value="最低借款额度"/><strong style="color: red">*</strong></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputNumber id="minLimit" value="#{loanProductInfoBean.$.minLimit}"
                                   disabled="#{loanProductInfoBean.isView()}"/>
                    <span class="input-group-addon">元</span>
                </div>
            </div>
            <div class="ui-g-2"><p:outputLabel for="maxLimit" value="最高借款额度"/><strong style="color: red">*</strong></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputNumber id="maxLimit" value="#{loanProductInfoBean.$.maxLimit}"
                                   disabled="#{loanProductInfoBean.isView()}"/>
                    <span class="input-group-addon">元</span>
                </div>
            </div>

            <div class="ui-g-2"><p:outputLabel for="averagePrice" value="件均价"/><strong style="color: red">*</strong></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputNumber id="averagePrice" value="#{loanProductInfoBean.$.averagePrice}"
                                   disabled="#{loanProductInfoBean.isView()}"/>
                    <span class="input-group-addon">元</span>
                </div>
            </div>
            <div class="ui-g-2"><p:outputLabel value="还款方式"/><strong style="color: red">*</strong></div>
            <div class="ui-g-4">
                <p:selectOneButton value="#{loanProductInfoBean.$.repayType}"
                                   disabled="#{loanProductInfoBean.isView()}">
                    <f:selectItem itemLabel="等额分期" itemValue="1"/>
                    <f:selectItem itemLabel="先息后本" itemValue="2"/>
                    <f:selectItem itemLabel="随借随还" itemValue="3"/>
                </p:selectOneButton>
            </div>


        </p:outputPanel>




        <div class="ui-g-12"><h3><b>营销基础信息</b></h3></div>
        <div class="ui-g-2">
            <p:outputLabel value="产品logo图"/>
            <strong style="color: red">*</strong>
        </div>
        <div class="ui-g-1">
            <p:graphicImage url="#{loanProductInfoBean.$.logo}" width="80"/>
        </div>
        <div class="ui-g-3">
            <p:fileUpload fileUploadListener="#{loanProductInfoBean.onUploadLogoPic}" mode="advanced"
                          fileLimit="1"
                          auto="true" fileLimitMessage="只能上传一个文件" invalidFileMessage="不支持上传文件类型"
                          invalidSizeMessage="文件过大" sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}"
                          allowTypes="/(\.|\/)(#{constants:get('UPLOAD_FILE_SUFFIX')})$/" label="上传" update="@form"
                          process="@form" disabled="#{loanProductInfoBean.isView()}"/>
        </div>
        <div class="ui-g-6"></div>
        <div class="ui-g-2">
            <p:outputLabel for="url" value="甲方H5链接"/>
        </div>
        <div class="ui-g-7">
            <p:inputText id="url" value="#{loanProductInfoBean.$.url}" disabled="#{loanProductInfoBean.isView()}"/>
        </div>
        <div class="ui-g-3">
            <p:commandButton value="短连转换"
                             actionListener="#{loanProductInfoBean.convertShortLink}"
                             disabled="#{loanProductInfoBean.isView()}" update="url"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="summary" value="活动描述"/>
            <strong style="color: red">*</strong>
        </div>
        <div class="ui-g-4">
            <p:inputText id="summary" value="#{loanProductInfoBean.$.summary}"
                         disabled="#{loanProductInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="advantageTag" value="产品优势(多值输入)"/>
            <strong style="color: red">*</strong>
        </div>
        <div class="ui-g-4">
            <p:chips id="advantageTag" value="#{loanProductInfoBean.$.advantage}"
                     disabled="#{loanProductInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="buttonDesc" value="按钮文案"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="buttonDesc" value="#{loanProductInfoBean.$.buttonDesc}"
                         disabled="#{loanProductInfoBean.isView()}"/>
        </div>

        <p:outputPanel rendered="#{loanProductInfoBean.$.productType == null or loanProductInfoBean.$.productType != 2}">

            <div class="ui-g-2">
                <p:outputLabel for="successCount" value="申请人数"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <p:inputText id="successCount" value="#{loanProductInfoBean.$.successCount}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>

            <div class="ui-g-2">
                <p:outputLabel for="lendDate" value="最快放款时间"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <p:inputText id="lendDate" value="#{loanProductInfoBean.$.lendDate}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>

            <div class="ui-g-2">
                <p:outputLabel for="passRate" value="审批通过率"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputText id="passRate" value="#{loanProductInfoBean.$.passRate}"
                                 disabled="#{loanProductInfoBean.isView()}">
                        <p:keyFilter regEx="/[\d]/"/>
                    </p:inputText>
                    <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
                </div>
            </div>
            <div class="ui-g-2">
                <p:outputLabel value="上周审核通过率"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputText id="lastweekpassRate" value="#{loanProductInfoBean.$.lastweekPassRate}"
                                 disabled="#{loanProductInfoBean.isView()}">
                        <p:keyFilter regEx="/[\d]/"/>
                    </p:inputText>
                    <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
                </div>
            </div>

            <div class="ui-g-2">
                <p:outputLabel for="global_score" value="平台综合分"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <p:inputText id="global_score" value="#{loanProductInfoBean.$.platformScore}"
                             disabled="#{loanProductInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">
                <p:outputLabel for="tips" value="提示浮窗说明"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="tips" value="#{loanProductInfoBean.$.floatContent}"
                             disabled="#{loanProductInfoBean.isView()}">
                </p:inputText>
            </div>
        </p:outputPanel>


        <div class="ui-g-12"><h3><b>营销登录信息</b></h3></div>
        <div class="ui-g-2">
            <p:outputLabel for="unionType" value="联登序号"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="unionType" filter="true" filterMatchMode="contains"
                             value="#{loanProductInfoBean.$.unionType}" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.UNION_SERIAL]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="hitLibMenu" value="撞库类型"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="hitLibMenu" filter="true" filterMatchMode="contains"
                             value="#{loanProductInfoBean.$.collisionApiId}"
                             disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.HIT_LIBRARY]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="apiserial" value="API序号"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="apiserial" filter="true" filterMatchMode="contains"
                             value="#{loanProductInfoBean.$.api}" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.loanApiInfos}"
                               var="loanApiInfos"
                               itemLabel="#{loanApiInfos.name}" itemValue="#{loanApiInfos.id}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="apiModelId" value="API模板ID"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="apiModelId" filter="true" filterMatchMode="contains"
                             value="#{loanProductInfoBean.$.apiModelId}"
                             disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.apiActivities}"
                               var="dic"
                               itemLabel="#{dic.apiName}" itemValue="#{dic.id}"/>
            </p:selectOneMenu>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="前筛规则"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu
                    value="#{loanProductInfoBean.$.prefilterId}" filter="true"
                    filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.loanProductPrefilters}"
                               var="loanProductPrefilter"
                               itemLabel="#{loanProductPrefilter.name}" itemValue="#{loanProductPrefilter.id}"/>
            </p:selectOneMenu>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="新撞库序号"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="newCollisionApiId" filter="true" filterMatchMode="contains"
                             value="#{loanProductInfoBean.$.newCollisionApiId}" disabled="#{loanProductInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{loanProductInfoBean.dictionaries[DictionaryCode.NEW_COLLISION_API_ID]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>

        <p:outputPanel id="loan-info-explain" rendered="#{loanProductInfoBean.$.productType == null or loanProductInfoBean.$.productType != 2}">

            <div class="ui-g-12"><h3><b>贷款说明信息</b></h3></div>
            <div class="ui-g-2">
                <p:outputLabel for="repayRemark" value="还款说明"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="repayRemark" value="#{loanProductInfoBean.$.repayRemark}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>
            <div class="ui-g-2">
                <p:outputLabel for="rateRemark" value="利率说明"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="rateRemark" value="#{loanProductInfoBean.$.rateRemark}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>

            <div class="ui-g-2">
                <p:outputLabel value="模板名称"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-4">
                <p:inputText value="#{loanProductInfoBean.$.activityName}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>

            <div class="ui-g-2">
                <p:outputLabel value="模板备注"/>
            </div>
            <div class="ui-g-4">
                <p:inputText value="#{loanProductInfoBean.$.activityMemo}"
                             disabled="#{loanProductInfoBean.isView()}"/>
            </div>
            <div class="ui-g-2">
                <p:outputLabel value="活动模板"/>
                <strong style="color: red">*</strong>
            </div>
            <div class="ui-g-10">
                <p:selectOneMenu value="#{loanProductInfoBean.activityModelRequest.activityModelId}" filter="true"
                                 filterMatchMode="contains" disabled="#{loanProductInfoBean.isView()}"
                                 style="width:150px">
                    <p:ajax event="change" listener="#{loanProductInfoBean.onChangeActivityModel()}"
                            process="@this" update="dynaPanel"/>
                    <f:selectItems value="#{loanProductInfoBean.activityModels}" var="activityModel"
                                   itemLabel="#{activityModel.modelName}" itemValue="#{activityModel.id}"/>
                </p:selectOneMenu>
            </div>

            <div style="width: 100%">
                <p:outputPanel id="dynaPanel">
                    <ui:repeat value="#{loanProductInfoBean.$.loanProductModelViews}" var="model" varStatus="status">
                        <h:panelGroup rendered="${model.type == 0}" style="width: 100%;float: right;">
                            <div class="ui-g-2">
                                <p:outputLabel value="#{model.label}"/>
                                <strong style="color: red">*</strong>
                            </div>
                            <div class="ui-g-10">
                                <p:inputText value="#{model.text}" disabled="#{loanProductInfoBean.isView()}"/>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup rendered="${model.type == 1}" style="width: 100%;float: right;">
                            <div class="ui-g-2">
                                <p:outputLabel value="#{model.label}"/>
                                <strong style="color: red">*</strong>
                            </div>
                            <div class="ui-g-10">
                                <p:outputPanel>
                                    <div class="ui-g-3">
                                        <p:fileUpload fileUploadListener="#{loanProductInfoBean.onUploadImage}"
                                                      mode="advanced"
                                                      fileLimit="1"
                                                      auto="true" style="width: 100px"
                                                      fileLimitMessage="只能上传一个文件"
                                                      invalidFileMessage="不支持上传文件类型"
                                                      invalidSizeMessage="文件过大"
                                                      sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}"
                                                      allowTypes="/(\.|\/)(#{constants:get('UPLOAD_FILE_SUFFIX')})$/"
                                                      label="上传" update="image" process="image"
                                                      disabled="#{loanProductInfoBean.isView()}">
                                            <f:attribute name="uploadIndex" value="#{status.index}"/>
                                        </p:fileUpload>
                                    </div>
                                    <div class="ui-g-7">
                                        <p:graphicImage id="image" url="#{model.imgUrl}" width="100%"/>
                                    </div>
                                </p:outputPanel>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup rendered="${model.type == 2}" style="width: 100%;float: right;">
                            <div class="ui-g-2">
                                <p:outputLabel value="#{model.label}"/>
                                <strong style="color: red">*</strong>
                            </div>
                            <div class="ui-g-10">
                                <p:outputPanel>
                                    <div class="ui-g-3">
                                        <p:fileUpload fileUploadListener="#{loanProductInfoBean.onUploadImageText}"
                                                      mode="advanced"
                                                      fileLimit="1"
                                                      auto="true" style="width: 100px"
                                                      fileLimitMessage="只能上传一个文件"
                                                      invalidFileMessage="不支持上传文件类型"
                                                      invalidSizeMessage="文件过大"
                                                      sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}"
                                                      allowTypes="/(\.|\/)(#{constants:get('UPLOAD_FILE_SUFFIX')})$/"
                                                      label="上传" update="imgText" process="imgText"
                                                      disabled="#{loanProductInfoBean.isView()}">
                                            <f:attribute name="uploadIndex" value="#{status.index}"/>
                                        </p:fileUpload>
                                    </div>
                                    <div class="ui-g-7">
                                        <p:graphicImage id="imgText" url="#{model.imgTextUrl}" width="100%"/>
                                    </div>

                                    <div class="ui-g-10">
                                        <p:inputTextarea value="#{model.imgText}" disabled="#{loanProductInfoBean.isView()}"/>
                                    </div>
                                </p:outputPanel>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup rendered="${model.type == 3}" style="width: 100%;float: right;">
                            <div class="ui-g-2">
                                <p:outputLabel value="#{model.label}"/>
                                <strong style="color: red">*</strong>
                            </div>
                            <div class="ui-g-10">
                                <p:calendar
                                        styleClass="autoWidthCalendar"
                                        value="#{model.date}"
                                        locale="#{constants:get('LOCALE')}"
                                        timeZone="#{constants:get('TIME_ZONE')}"
                                        pattern="#{constants:get('DATE_FORMAT')}"
                                        disabled="#{loanProductInfoBean.isView()}"/>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup rendered="${model.type == 4}" style="width: 100%;float: right;">
                            <div class="ui-g-2">
                                <p:outputLabel value="#{model.label}"/>
                                <strong style="color: red">*</strong>
                            </div>
                            <div class="ui-g-10">
                                <p:selectOneMenu value="#{model.isTrue}" style="width:125px"
                                                 disabled="#{loanProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="是" itemValue="1"/>
                                    <f:selectItem itemLabel="否" itemValue="0"/>
                                </p:selectOneMenu>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup rendered="${model.type == 5}" style="width: 100%;float: right;">
                            <div class="ui-g-12">
                                <p:outputLabel value="#{model.label}"/><strong style="color: red">*</strong>

                                <p:commandButton style="float: right" icon="fa fa-plus"
                                                 action="#{loanProductInfoBean.onAddRow(status.index)}"
                                                 disabled="#{loanProductInfoBean.isView()}" update="listData"/>
                            </div>
                            <div class="ui-g-12">
                                <p:dataTable var="item" value="#{model.oneListObjects}" emptyMessage="暂无数据"
                                             draggableRows="true" id="listData">
                                    <p:column>
                                        <p:inputText value="#{item.text}" disabled="#{loanProductInfoBean.isView()}"/>
                                    </p:column>
                                </p:dataTable>
                            </div>
                        </h:panelGroup>
                    </ui:repeat>
                </p:outputPanel>
            </div>

        </p:outputPanel>


    </div>
</ui:composition>




